graphing sine and cosine where amplitude and period is affected